home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 September / CHIP Eylül 1998.iso / Slackwar / docs / mini / Consoles-Many < prev    next >
Text File  |  1996-09-25  |  4KB  |  134 lines

  1.  
  2. Efficiently using more than 8 consoles (v1.1 15.09.96)
  3. ------------------------------------------------------
  4.  
  5. Are you tired of typing in password and username whenever you want to
  6. access a unused text-console? Then this mini-HOWTO is for you!
  7.  
  8. All the functionallity for using a new text-console without logging in
  9. is concentrated in the program `open'. Just issue
  10.  
  11.         open -sl
  12.  
  13. and you will be teleported to a fresh console with your favourite
  14. shell prompting at you. Possibly this program is not part of your
  15. distribution, but read on.
  16.  
  17. Most distributions provide only 8 console-devices. You can easily
  18. exceed this number while playing around with `open' so it's better to
  19. create a little stock of console-devices.
  20.  
  21.  
  22. Create the nesassary device-files
  23. ---------------------------------
  24.  
  25. Log in as root. Then execute the following commands
  26.  
  27.     -----8<----- cut here -----8<-----
  28.     cd /dev
  29.     ./MAKEDEV tty9
  30.     for i in  0 1 2 3 4 5 6 7 8 9
  31.     do
  32.         ./MAKEDEV tty1$i
  33.     done
  34.     -----8<----- cut here -----8<-----
  35.  
  36. `/dev/MAKEDEV' is a shell-script. You can use `more' (or `less') to
  37. view the contents of this script to get more information about what
  38. happens.
  39.  
  40. Of course running more than 2 login-prompts on your system is
  41. luxuriantly when using `open'.
  42.  
  43.  
  44. Get rid of all login-prompts but 2
  45. ----------------------------------
  46.  
  47. Load the file `/etc/inittab' into your favorite editor and comment out
  48. all lines containing "getty" like shown below (hint: leave the rest of
  49. the file unchanged!).
  50. As you may have guessed, the char to make comments is `#'.
  51.  
  52.     -----8<----- cut here -----8<-----
  53.     # /sbin/getty invocations for the runlevels.
  54.     #
  55.     # The "id" field MUST be the same as the last
  56.     # characters of the device (after "tty").
  57.     #
  58.     # Format:
  59.     #  <id>:<runlevels>:<action>:<process>
  60.     1:2345:respawn:/sbin/getty 9600 tty1
  61.     2:23:respawn:/sbin/getty 9600 tty2
  62.     #3:23:respawn:/sbin/getty 9600 tty3
  63.     #4:23:respawn:/sbin/getty 9600 tty4
  64.     #5:23:respawn:/sbin/getty 9600 tty5
  65.     #6:23:respawn:/sbin/getty 9600 tty6
  66.     #7:23:respawn:/sbin/getty 9600 tty7
  67.     -----8<----- cut here -----8<-----
  68.  
  69. Re-load the above configuration-file via the command `/sbin/telinit q'
  70. (as root ) and wipe out all running login-prompts with `killall getty'
  71. (or whatever sort of getty you're running; you can see them with 
  72. `ps -aux').
  73.  
  74.  
  75. If you have your X-Session on vt8 (thats the console you change to
  76. when you press Ctrl-Alt-F8 ), you may wish to add the option `vt8' to
  77. the options for X in `/etc/X11/xdm/Xservers':
  78.  
  79.     -----8<----- cut here -----8<-----
  80.     :0 local /usr/X11R6/bin/X vt8
  81.     -----8<----- cut here -----8<-----
  82.  
  83. (Leave the rest of the file unchanged.) Voila, X is still on vt8 next
  84. time you boot Linux. Otherwise you would have found it on vt3.
  85.  
  86.  
  87. Install the program `open'
  88. --------------------------
  89.  
  90. If the program `open' is not part of you distribution (Debian and
  91. RedHat provide it) then get the packet "dynamic-vt-1.1.tar.gz" from
  92. sunsite or it's mirrors.  
  93. It contains `open' and a few other useful utilities; the installation
  94. is straightforward.
  95.  
  96. You don't know how what "sunsite and it's mirrors" means? You don't
  97. know how to install a program?
  98. Sorry, that's beyond the scope of this mini-howto. It really makes me
  99. sick to see every HOWTO explaining this again and again (making it
  100. long and very boring). Ask an expert and write an
  101. `Software-Installation HOWTO' afterwards. Thank you.
  102.  
  103.  
  104. Test it out
  105. -----------
  106.  
  107. You're done. Log into one console. Now, if you want to start a
  108. command-prompt (`bash', `tcsh') on an empty console just type 
  109.  
  110.         open -sl
  111.  
  112. No login-id, no password is required (because you have already
  113. authenticated yourself by logging in to one console).
  114.  
  115. Alternativly, you can try the commands
  116.  
  117.     open -sl -- top
  118.     open -l  -- tail -f /var/log/messages
  119.         open -sl -- pine
  120.  
  121.  
  122. If the screen is still messed up, try the command `reset' or reboot the
  123. computer once.
  124.  
  125. The consoles no. 13-24 can be accessed with <AltGr-F1> till
  126. <AltGr-F12>.
  127. Programs like `tty', `ps' and `chvt' help you to navigate through the
  128. new bunch of consoles. 
  129.  
  130. Note: your sessions don't show up under `w' or `finger'.
  131.  
  132. Winfried Trⁿmper <winni@xpilot.org>
  133.  
  134.